package com.zyt.service.impl;

import com.zyt.entity.User;
import com.zyt.mapper.CategoryMapper;
import com.zyt.mapper.UserMapper;
import com.zyt.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(String email, String password) {
        return userMapper.login(email,password);
    }

    @Override
    public void insertRegister(User user) {
        userMapper.insertRegister(user);
    }

    @Override
    public void updateState(Integer id) {
        userMapper.updateState(id);
    }
}
